/**
 * Copyright 2010 Victor Egea Hernando
 *
 * RockScript is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * RockScript is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with RockScript.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef PAPER2LIR_H_
#define PAPER2LIR_H_

#include "picojit/pjit.h"
#include "picojit/pjit_buffer.h"

#include "method.h"

#include <list>

namespace paper{

class vmachine;

class PAPER_API paper2lir{

public:
	// MAIN INTERFACE
	paper2lir &translate( paper::vmachine &vm, paper::method &method, pjit::pjit_buffer &buffer );

};

}; // namespace pjit

#endif // PAPER2LIR_H_
